All Questions
16 questions
3votes
2answers
124views
Text based Java game "Battle Arena"
This is my first java program. I'm coming from a python background. This is a text based combat arena game. Are there any ways I could better implement the overall code structure? How might I improve ...
3votes
1answer
845views
Forming words that start with consonants and vowels
I am just starting to learn programming. I had already coded some functions and stuff in other languages, and whilst trying to complete this Python challenge Kevin and Stuart want to play the 'The ...
7votes
2answers
4kviews
Echo implemented in Java
I implemented a simple version of echo(1) command utility. The program works as described in the man page: it writes to the standard output all command line arguments, separated by a whitespace and ...
1vote
2answers
2kviews
Simple console dice game, trying to roll two of the same number
I'm a young and beginner Java programmer and I'm starting to learn again Java (used it in the past years at school) since I want to enter a competition and (hope to) win for getting a job. I wanted to ...
5votes
1answer
6kviews
Choose your own story text game that executes with loop using choices supplied by player
I am creating a choose your own story type of game in Java. I am new to object oriented design and Java, and a text adventure game sounded like a fun way to try to implement some of the programming ...
0votes
1answer
1kviews
Basic Java CLI terminal calculator
I have asked a question on how to make a CLI calculator accept infinite numbers until you specify that you want the answer. Now I have figured out how to do it, but I do really want to know how can I ...
2votes
1answer
123views
A CLI calculator that can do basic calculations and can solve geometric formulas using a built in template
This is an update for my old post, "CLI Calculator that can solve built-in formulas and basic equations." Here I made some changes to the code, by splitting it up into many classes. In the previous ...
6votes
1answer
133views
CLI Calculator that can solve built-in formulas and basic equations
I am just a java beginner — so this program is very basic. It works as intended but I think it's a bit too repetitive and it probably uses more resources than intended. Also, I cannot run this from ...
22votes
6answers
54kviews
Simple text-based RPG in Java
I was looking for suggestions on how to improve the general flow of this code, as well as minimizing if / switch conditionals. ...
6votes
2answers
2kviews
Command line Hangman game
I was wondering if you can give me advice / and your opinion on the following code. I'm aware there are a few things that it doesn't presently deal with that could be enhanced (I don't have time, this ...
5votes
3answers
13kviews
Dr. Nim game in Java
This video should explain how the game works, but in simple form, it's a game where you enter a number between 1 and 3, This number is than removed from 12, in doing so the computer will then pick a ...
10votes
3answers
193views
Counting characters
I'm a beginner at coding, and I am looking to improve the structure of how I write code and will take any tips. Posted a simple program that takes your name as input, then runs the string through a ...
5votes
2answers
3kviews
Prompting for five test scores and printing the average
I am not sure how to properly make this readable. I have been trying to find examples online but I cannot find any that are specific to this simple program. ...
15votes
4answers
21kviews
Text-based BlackJack game
I am a new programmer (I've been doing Java for about 7 weeks) and I am of the type who wants to get it right straight away, so I wonder how this code: Compares to the common practice is structured. ...
12votes
4answers
4kviews
Hangman game in Java - second try
Please look over my new object-oriented version of my Hangman game I posted here about two weeks ago. I know I should work more on commenting and be clearer and more descriptive of the methods and ...